package org.xb.decoupling02;

public class DependencyInjectionExample {
    public static void main(String[] args) {
        // 通过构造函数注入依赖
        DatabaseConnection databaseConnection = new DatabaseConnection("2323");
        UserService userService = new UserService(databaseConnection);
        userService.performDatabaseOperation();
    }
}
